package com.lyloou.practicerabbitmq.config;

import com.lyloou.practicerabbitmq.entity.Order;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

/**
 * @author lilou
 * @since 2021/2/18
 */
@Configuration
public class CacheConfig {
    @Bean("orderDb")
    public Map<String, Order> orderDb() {
        return new ConcurrentHashMap<>();
    }
}
